home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pocket PC Game Programming
/
Pocket PC Game Programming.iso
/
source.exe
/
CH15
/
Project02
/
CWaveOut.h
< prev
next >
Wrap
C/C++ Source or Header
|
2001-02-10
|
739b
|
33 lines
////////////////////////////////////////////////////////////
// Pocket PC Game Programming
// Chapter 10: Sound Effects and Music
//
// CWaveOut Header File
//
// This file includes the CWaveOut definition.
// Only supports uncompressed Windows PCM wave format.
//
////////////////////////////////////////////////////////////
#pragma once
class CWaveOut
{
private:
DWORD dwBytesRead;
LPCTSTR lpWave;
BOOL bRepeat;
public:
CWaveOut();
CWaveOut(LPTSTR lpFile);
~CWaveOut();
BOOL Load(LPTSTR lpFile);
void Play();
void Stop();
DWORD GetLength() { return dwBytesRead; };
void SetRepeat(BOOL bVal) { bRepeat = bVal; };
BOOL Repeating() { return bRepeat; };
};